{% extends 'base_navigation.html' %}
{% load static %}

<html>
<head>{% block head_part %}
<title>自动化测试小用例</title>
{#<!-- for-mobile-apps -->#}
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
{#<!-- //for-mobile-apps -->#}
{#    TODO  将导航由后端进行渲染，为了重构方便#}
	<link href="{% static 'Form_Style/css/style.css' %}" rel="stylesheet" type="text/css" media="all" />
{#<!--11.13	article-->#}
	<link rel="stylesheet" href="{% static 'Form_Style/css/style-nav.css' %}">
{#<!---->#}
    {% endblock %}
</head>

<body>
{% block user_who %}| User：{{ username }}{% endblock user_who %}
{% block body_part %}
<article style="top:10%">
<div class="main">
{#<!--	<article>-->#}
	<h1>自动化测试小用例生成</h1>
	<div class="agileinfo_main_grid">
		<form action="{% url 'generate_yaml:small_gener' %}" method="post">
{#            必须放在表单内 防止CSRF攻击#}
			{% csrf_token %}
			<div class="styled-input">
				 {{ S_form.author_s.errors }}
{#				 <!--{{ S_form.author_s.label_tag }}-->#}
				 {{ S_form.author_s }}
				<span></span>
			</div>

			<div class="styled-input">
{#				<!--id必须为country 否则无法使用CSS-->#}
				{{ S_form.search_s }}
				<span></span>
			</div>
			<div class="styled-input">
				{{ S_form.match_s }}
				<span></span>
			</div>

			
			<div class="clear"></div>
			
			<div class="styled-input">
				{{ S_form.name_s }}
				<span></span>
			</div>
			<div class="styled-input">
				{{ S_form.start_s }}
				<span></span>
			</div>
			<div class="clear"></div>
			<div class="styled-input">
				{{ S_form.end_s }}
				<span></span>
			</div>
			
			<div class="clear"></div>
		
{#<!--			<div class="w3agile_budget">-->#}
			<div class="styled-input">
				<div>
{#<!--					<h4 style="display:inline">目录选择</h4>-->#}
{#					<!--<input name="Range" type="range" min="0" max="1000" data-rangeslider="" />#}
{#					<output></output><input type="file" name="ss">-->#}
					{{ S_form.file_path }}
					<span></span>
{#<!--					<div class="clear"></div>-->#}
				</div>
			</div>
{#            <div class="styled-input" style="margin-left: 70px">#}
{#				<div>#}
{#<!--					<h4 style="display:inline">目录选择</h4>-->#}
{#					<!--<input name="Range" type="range" min="0" max="1000" data-rangeslider="" />#}
{#					<output></output><input type="file" name="ss">-->#}
{#					{{ S_form.xml_path }}#}
{#					<span></span>#}
{#<!--					<div class="clear"></div>-->#}
{#				</div>#}
{#			</div>#}
			
			<div class="styled-input w3_styled_input_textarea">
{#<!--				<textarea name="Review" placeholder="填写备注" required=" "></textarea>-->#}
				{{ S_form.purpos_s }}
				<span></span>
			</div>
			<input type="submit" value="提交生成" />
		</form>
	</div>
	{% if messages %}
    <script>
        {% for msg in messages %}
            alert('{{ msg.message }}');
        {% endfor %}
    </script>
	{% endif %}


	<div class="agileits_copyright">
		<p>&copy; 2019 reserved</p>
	</div>
	</div>
		</article>


{#<!--11.13-->#}

{#<!---->#}
<script  src="{% static 'Form_Style/download_js/script-nav.js' %}"></script>
{% endblock body_part %}
</body>
</html>